
#ifndef INTERESTCALCULATOR_H_INCLUDE
#define INTERESTCALCULATOR_H_INCLUDE

/**
 *
 *@brief @link main.c @endlink \n 
 *requests 
 *@return true for successful termination
 */
int main(void);

/**
 *
 *@brief @link ui.c @endlink\n
 *requests principal investment
 *@return principal - the principal value user inputs
 */
float getPrincipal();

/**
 *
 *@brief @link ui.c @endlink \n
 *Request rate at which the principal grows
 *@return rate - the decimal form of the rate the user inputs
 */
float getRate();

/**
 *
 *@brief @lnk ui.c @endlink \n
 *requests the amount in years which the principal is invested
 *@return time - time in years in decimal form
 */
float getTime();

/**
 *
 *@brief @link ui.c @endlink \n
 *requests how many times per year interest is compounded.
 *"n" in common compound interst formula
 *@return frequency - integer representing number of times interest is compounded
 */
int getFrequency();

/**
 *
 *@brief @link ui.c @endlink \n
 *prints the calculated interest for user given information
 *@param interest - the amount of interest earned based off of user given data
 */
void printResponse(float interest);

/**
 *
 *@brief @link logic.c @endlink \n
 * calculates simple interest based on user given values
 *@param principal - user given, amount of money invested
 *@param rate - user given percentage, interest rate
 *@param time - user given, amount of time in years
 *return interest - the amount of interest earned based off user given data
 */
float calculateSimpleInterest( float principal, float rate, float time);

/**
 *
 *@brief @link logic.c @endlink \n
 * calculates simple interest based on user given values
 *@param principal - user given, amount of money invested
 *@param rate - user given percentage, interest rate
 *@param time - user given, amount of time in years
 *@param frequency - user given, number of times interest is compounded
 *return interest - the amount of interest earned based off user given data
 */
float calculateCompoundInterest( float principal, float rate, float time, int frequency);

/**
 *@brief @link ui.c @endlink \n 
 *Asks the user if they want to run the program again.
 *@return true if user wants to continue
 */
int inquireContinuation(void);

//#include "logic.c"
//#include "ui.c"

#endif